package ex02;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class SeminarAction extends ActionSupport{
	
	private List<Seminar> listSeminar;
	
	public String seminarInfo() throws Exception{
		String template = "yyyy-MM-dd";
		SimpleDateFormat sdf = new SimpleDateFormat(template);
		listSeminar = new ArrayList<Seminar>();
		
		listSeminar.add(new Seminar("JF001","Struts2","홍길동",
				sdf.parse("2010-05-05"),"02 PM","06 PM", true));
		listSeminar.add(new Seminar("JF002","Spring3.0","이순신",
				sdf.parse("2010-05-10"),"02 PM","06 PM", true));
		listSeminar.add(new Seminar("JF003","Ajax","보아",
				sdf.parse("2010-05-11"),"02 PM","06 PM", true));
		listSeminar.add(new Seminar("JF004","JAVA","졸리",
				sdf.parse("2010-05-30"),"03 PM","08 PM", true));
		listSeminar.add(new Seminar("JF005","smart mobile","이은성",
				sdf.parse("2010-05-12"),"02 PM","06 PM", true));
		
		return SUCCESS;
		
	}

	public List<Seminar> getListSeminar() {
		return listSeminar;
	}

	public void setListSeminar(List<Seminar> listSeminar) {
		this.listSeminar = listSeminar;
	}
	

}
